﻿<div class="search-now">
    <div class="search-header"></div>
    <div class="search-content">
        <div class="search-content-body">
        @using (Html.BeginForm("QuickSearch", "search"))
        {
            <div class="title">SEARCH NOW</div>
            <div class="search-item">
                <div class="item-name"><span class="item-number">01.</span><span class="item-name">Category</span></div>
                @{var CategoryItems = (List<SelectListItem>)ViewData["categoryList"]; }
                <div class="category-list">@Html.DropDownList("category",CategoryItems)</div>
            </div>
            <div class="search-item">
                <div class="item-name"><span class="item-number">02.</span><span class="item-name">Name</span></div>
                <div class="site-name"><input type="text" name="sitename" id="sitename" class="inputtext" value="@ViewData["sitename"]" /></div>
            </div>
            <div class="search-item">
                <div class="item-name"><span class="item-number">03.</span><span class="item-name">Zip Code</span></div>
                <div class="site-name"><input type="text" name="zipcode" id="zipcode" class="inputtext" value="@ViewData["zipcode"]" /></div>
            </div>            
            <div class="search-item">
                <div class="item-name"><span class="item-number">04.</span><span><input type="radio" name="rbtcashcard" id="rbtCash" value="cash" @if("cash".Equals(ViewData["rbtcashcard"])){@Html.Raw("checked=\"checked\"");}else{@Html.Raw("");} /><label for="rbtCash">Cash</label><input type="radio" name="rbtcashcard" id="rbtCard" value="card"  @if("card".Equals(ViewData["rbtcashcard"])){@Html.Raw("checked=\"checked\"");}else{@Html.Raw("");}  /><label for="rbtCard">Card</label></span></div>
                <div class="cashcard-list"><select name="cashcard" id="cashcard"></select></div>
            </div>
            <div class="search-button button">
                <input type="submit" id="btn_search" value="Search" />
            </div>
        }
        </div>
    </div>
    <div class="search-footer"></div>
</div>
<div class="quicksearch-ads">
    <img src="~/Images/detail-ad-1.gif" />
</div>
@Scripts.Render("~/Scripts/Common/search.js")